# 请循环输出所有的key
dic = {'k1': "v1", "k2": "v2", "k3": [11,22,33]}
# # for a in dic.keys():
# #     print(a)
#
# #请循环输出所有的value
# for b in dic.values():
#     print(b)

#请循环输出所有的key 和value
# for key, value in dic.items():
#     print( key, value)


#请在字典中添加一个键值对，"k4": "v4"，输出添加后的字典
# dic ['k4']='v4'
# print(dic)
# {'k1': 'v1', 'k2': 'v2', 'k3': [11, 22, 33], 'k4': 'v4'}

#请在修改字典中 “k1” 对应的值为 “itsouce”，输出修改后的字典
# dic ['k1']='itsouce'
# print(dic)
# {'k1': 'itsouce', 'k2': 'v2', 'k3': [11, 22, 33]}